home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / GETDISK.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  166 b   |  10 lines

  1. /* getdisk.c --- p. 606 */
  2. #include <stdio.h>
  3. #include <dir.h>
  4. main()
  5. {
  6.     int drive;
  7.     drive = getdisk();
  8.     printf("The current drive is: %c\n", drive+'A');
  9. }
  10.